using QTool.BEPUphysics;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using QTool.BEPUphysics.Entities.Prefabs;
using QTool.NetFrame;
using QTool.BEPUphysics.Entities;
using QTool.BEPUphysics.CollisionShapes.ConvexShapes;
using QTool.BEPUphysics.CollisionShapes;

namespace QTool.NetFrame
{
    public class FixSphereCollider : FixCollider
    {

        public Fix64 radius = 0.5f;

        protected override EntityShape CreateShape()
        {
            return new SphereShape(radius * Mathf.Max(transform.lossyScale.x, transform.lossyScale.y, transform.lossyScale.z));
        }
    }
}